-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused CentOS file for x86_64. #1133
Conversation
This file currently isn't used, but it probably should be when we have much more native support for ARM64 hosts. I really don't want to implement this currently, but making it clear this file isn't used it a good idea. Also, how our process for detecting native Dockerfiles works is that we first locate the non-native Dockerfile, and error if it isn't found. This would cause an issue if we remove this entirely. bors try --target x86_64-unknown-linux-gnu.centos |
tryBuild succeeded: |
I say no to this, I don't see the need since
works fine |
I failed to communicate the intent and rationale of this:
Marking it as unused, without actually having it do anything, is probably the best solution: I'd rather not add additional logic to our build system just for this file. |
ofc, I built the wrong image... anyway, I'd prefer it if we keep the file. Instead I think we can move it to Does that seem fair? |
We can, I just think the file is practically identical to 4,7d3
< ARG TARGETARCH
< ARG TARGETVARIANT
< ARG CROSS_TARGET_TRIPLE
<
9,10c5,6
< COPY linux-image.sh native-linux-image.sh /
< RUN /native-linux-image.sh
---
> COPY linux-image.sh /
> RUN /linux-image.sh x86_64
23,29c19,20
< # these need to be present in **both** FROM sections
< ARG TARGETARCH
< ARG TARGETVARIANT
< ARG CROSS_TARGET_TRIPLE
<
< COPY qemu.sh native-qemu.sh /
< RUN /native-qemu.sh
---
> COPY qemu.sh /
> RUN /qemu.sh x86_64 softmmu
36c27
< COPY linux-runner native-linux-runner base-runner.sh /
---
> COPY linux-runner base-runner.sh /
38,39d28
< ENV CROSS_TARGETARCH=$TARGETARCH
< ENV CROSS_TARGETVARIANT=$TARGETVARIANT
42c31
< ENV CARGO_TARGET_${CROSS_TARGET_TRIPLE}_RUNNER="/native-linux-runner"
---
> ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="/linux-runner x86_64 Or, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after some contemplation, I think this is fine now :)
the image works with cargo build-docker-image --platform aarch64-unknown-linux-gnu x86_64-unknown-linux-gnu.centos
but is pretty much unusable
6d1addd
to
ae89707
Compare
bors r=Emilgardis |
1133: Remove unused CentOS file for x86_64. r=Emilgardis a=Alexhuszagh Co-authored-by: Alex Huszagh <[email protected]>
Build failed: |
Looks like GNU Savannah's temporarily down: will retry later once it's back up. |
bors retry |
Build succeeded: |
No description provided.